package com.example.lawyermanager.dongao.service;

import com.example.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

/**
 * 律师业务接口
 * @author wangxinghao
 * @version 1.0
 */

public interface LawyerService {

    /**
     * 删除律师
     * @param lawyerid 律师编号
     * @return 删除成功返回1，否则返回0
     */
    public int removeLawyer(int lawyerid);
    /**
     * 查询所有律师
     * @return 律师集合
     */
    public List<Lawyer> findLawyer();

    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 添加成功返回1；失败返回0
     */
    public int addLawyer(Lawyer lawyer);


}
